package com.iflytek.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品
 * @author h_t
 * @since 2023-09-23
 */

@Data
public class GoodsDTO  {

    @ApiModelProperty(value = "序号,新增不传",example="1")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "商品编号")
    private String no;

    @ApiModelProperty(value = "原价")
    private BigDecimal price;

    @ApiModelProperty(value = "折扣")
    private Double discount;

    @ApiModelProperty(value = "库存",example="1")
    private Integer store;

    @ApiModelProperty(value = "点赞数",example="1")
    private Integer praise;

    @ApiModelProperty(value = "销量",example="1")
    private Integer sales;

    @ApiModelProperty(value = "分类id",example="1")
    private Long categoryId;

    @ApiModelProperty(value = "商品图片")
    private String imgs;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "是否推荐：0不推荐，1推荐")
    private Boolean recommend;

}
